package com.example.attempt.mapper;

import com.example.attempt.entity.Assistant;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AssistantMapper {
    public List<Assistant> queryAll();
    public Assistant queryById(String aid);  //根据用户名查询数据
    public Assistant queryByTid(String tid);
    public Assistant queryByIdAndP(String aid, String apwd);
    public int getNum();
    public int deleteAssistant(String aid);
    public int addAssistant(Assistant assistant);//添加数据
}
